import request from '@/utils/request'

// 查询文章内容详情列表
export function listColumnDetail(query) {
  return request({
    url: '/business/columnDetail/list',
    method: 'get',
    params: query
  })
}

// 查询文章内容详情详细
export function getColumnDetail(detailId) {
  return request({
    url: '/business/columnDetail/' + detailId,
    method: 'get'
  })
}

// 新增文章内容详情
export function addColumnDetail(data) {
  return request({
    url: '/business/columnDetail',
    method: 'post',
    data: data
  })
}

// 修改文章内容详情
export function updateColumnDetail(data) {
  return request({
    url: '/business/columnDetail',
    method: 'put',
    data: data
  })
}

// 删除文章内容详情
export function delColumnDetail(detailId) {
  return request({
    url: '/business/columnDetail/' + detailId,
    method: 'delete'
  })
}

export function columnTree(query) {
  return request({
    url: '/business/columnDetail/columnTree',
    method: 'get',
    params: query
  })
}
